package com.bjtu.ptsite.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 * PromotionRule 实体类
 *
 */
@Data
@TableName("promotion_rule")
@NoArgsConstructor
@AllArgsConstructor
public class PromotionRule {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     *
     * time/seeders/holiday
     *
     */
    @TableField
    private String conditionType;

    /**
     *
     * free_download/upload_boost/download_discount
     *
     */
    @TableField
    private String actionType;

    /**
     *
     * 条件阈值（如做种人数阈值）
     *
     */
    @TableField
    private Double threshold;

    @TableField
    private Boolean isActive = true;

    /**
     *
     * 倍数
     *
     */
    @TableField
    private double value = 1.0;
    // Getters and Setters
}//This is a comment
